<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const p1 = new Promise((resolve, reject) => {
      resolve()
    })

    console.log("p1", p1);

    //哪怕直接调用then的是一个成功的promise实例,then的回调函数还是改变不了异步的本质,仍然是异步执行
    p1.then(() => {
      console.log("then");
    })

    console.log("1");

    
  </script>
</body>

</html>